﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;

namespace SAKS.ViewModels
{
    public class UsersInRoleModel
    {
        [DisplayName("角色")]
        [Required]
        public string Role { get; set; }
        public IList<string> Users { get; set; }
    }
    public class UserInRoleModel
    {
        [DisplayName("角色")]
        [Required]
        public string Role { get; set; }
        [DisplayName("用户名")]
        [Required]
        public string UserName { get; set; }
    }
    public class UserInRolesModel
    {
        [DisplayName("用户名")]
        [Required]
        public string UserName { get; set; }
        [DisplayName("角色")]
        public IList<string> Roles { get; set; }
    }
}
